<?php

namespace addons\shopro\model;

use think\Model;
use addons\shopro\exception\Exception;
use think\Db;
use traits\model\SoftDelete;

/**
 * 门店
 */
class Recharge extends Model
{
    use SoftDelete;

    // 表名,不含前缀
    protected $name = 'store_money';
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = 'deletetime';

    public function getImageAttr($val,$data){
        if(!empty($val)) $val = cdnurl($val,true);
        return $val;
    }
}
